package com.itwill.ecom.admin;

/**
 * 
 * 한페이지가 보여질때 모든 정보를 가지고 있는 클래스다.
 * AdminPageCounter 클래스를 통해 값을 받아 저장하는 용도이다.
 *
 */

import java.util.List;

public class AdminListBeans {
	private List list; //결과리스트 저장
	private int totalListCount; //결과리스트가 아닌 모든 리스트의 총개수를 저장
	private int startPageNo; //시작페이지 번호
	private int endPageNo; //끝페이지 번호
	private int selectPageNo; //선택된페이지 번호
	private int rowCount; //한페이지에 보여질 총 행수
	private int pageCount; //한페이지에 보여질 페이지 번호 개수
	private int preGroupStartPageNo; //이전그룹의 시작페이지 번호
	private int nextGroupStartPageNo; //다음그룹의 시작페이지 번호
	
	private boolean showPrevious; //이전페이지보이기여부
	private boolean showNext; //다음페이지보이기여부
	private boolean showPreviousGroup; //이전그룹보이기여부
	private boolean showNextGroup; //다음그룹보이기여부
	private boolean showFirst; //처음으로보이기여부
	private boolean showLast; //마지막으로보이기여부
	
	//DB성능향상을 위한 변수
	private int startRowNum; //sql검색시사용
	private int endRowNum;
	
	public AdminListBeans() {
		// TODO Auto-generated constructor stub
		System.out.println("△AdminListBeans생성자△");
	}

	public AdminListBeans(List list, int totalListCount, int startPageNo,
			int endPageNo, int selectPageNo, int rowCount, int pageCount,
			int preGroupStartPageNo, int nextGroupStartPageNo,
			boolean showPrevious, boolean showNext, boolean showPreviousGroup,
			boolean showNextGroup, boolean showFirst, boolean showLast,
			int startRowNum, int endRowNum) {
		super();
		this.list = list;
		this.totalListCount = totalListCount;
		this.startPageNo = startPageNo;
		this.endPageNo = endPageNo;
		this.selectPageNo = selectPageNo;
		this.rowCount = rowCount;
		this.pageCount = pageCount;
		this.preGroupStartPageNo = preGroupStartPageNo;
		this.nextGroupStartPageNo = nextGroupStartPageNo;
		this.showPrevious = showPrevious;
		this.showNext = showNext;
		this.showPreviousGroup = showPreviousGroup;
		this.showNextGroup = showNextGroup;
		this.showFirst = showFirst;
		this.showLast = showLast;
		this.startRowNum = startRowNum;
		this.endRowNum = endRowNum;
	}

	public List getList() {
		return list;
	}

	public void setList(List list) {
		this.list = list;
	}

	public int getTotalListCount() {
		return totalListCount;
	}
	
	public void setTotalListCount(int totalListCount) {
		this.totalListCount = totalListCount;
	}

	public int getStartPageNo() {
		return startPageNo;
	}

	public void setStartPageNo(int startPageNo) {
		this.startPageNo = startPageNo;
	}

	public int getEndPageNo() {
		return endPageNo;
	}

	public void setEndPageNo(int endPageNo) {
		this.endPageNo = endPageNo;
	}

	public int getSelectPageNo() {
		return selectPageNo;
	}

	public void setSelectPageNo(int selectPageNo) {
		this.selectPageNo = selectPageNo;
	}

	public int getRowCount() {
		return rowCount;
	}

	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}

	public int getPageCount() {
		return pageCount;
	}

	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

	public int getPreGroupStartPageNo() {
		return preGroupStartPageNo;
	}

	public void setPreGroupStartPageNo(int preGroupStartPageNo) {
		this.preGroupStartPageNo = preGroupStartPageNo;
	}

	public int getNextGroupStartPageNo() {
		return nextGroupStartPageNo;
	}

	public void setNextGroupStartPageNo(int nextGroupStartPageNo) {
		this.nextGroupStartPageNo = nextGroupStartPageNo;
	}

	public boolean isShowPrevious() {
		return showPrevious;
	}

	public void setShowPrevious(boolean showPrevious) {
		this.showPrevious = showPrevious;
	}

	public boolean isShowNext() {
		return showNext;
	}

	public void setShowNext(boolean showNext) {
		this.showNext = showNext;
	}

	public boolean isShowPreviousGroup() {
		return showPreviousGroup;
	}

	public void setShowPreviousGroup(boolean showPreviousGroup) {
		this.showPreviousGroup = showPreviousGroup;
	}

	public boolean isShowNextGroup() {
		return showNextGroup;
	}

	public void setShowNextGroup(boolean showNextGroup) {
		this.showNextGroup = showNextGroup;
	}

	public boolean isShowFirst() {
		return showFirst;
	}

	public void setShowFirst(boolean showFirst) {
		this.showFirst = showFirst;
	}

	public boolean isShowLast() {
		return showLast;
	}

	public void setShowLast(boolean showLast) {
		this.showLast = showLast;
	}

	public int getStartRowNum() {
		return startRowNum;
	}

	public void setStartRowNum(int startRowNum) {
		this.startRowNum = startRowNum;
	}

	public int getEndRowNum() {
		return endRowNum;
	}

	public void setEndRowNum(int endRowNum) {
		this.endRowNum = endRowNum;
	}
	
}
